<template>
    <el-config-provider :size="curSize" :locale="curLang" :z-index="3000">
        <router-view />
    </el-config-provider>
</template>
<script setup>
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'
import { useStore } from 'vuex'
import { computed } from '@vue/runtime-core'

const store = useStore()

// 计算属性
const curLang = computed (() => {
    return store.getters.getCurLang === 'zhCn' ? zhCn : en  // 当前系统使用的语言
})
const curSize = computed(() => {
    return store.getters.getAssemblySize
})
</script>
